home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8"?>
- <!-- ===========================================================
- Category: MultipleDataSources
- Sub-category: XML
- Author: David Silverlight
- HeadGeek@xmlpitstop.com
- Created: 2001-05-16
- Description:-
- This stylsheet demonstrates how to combine multiple XML
- documents into a single data source. In this example, the
- name of the xml document is stored as an attribute value.
- The document() function is used in the stylesheet to create
- an instance of each xml document. The end result of the
- transformation is a combination of all of the input XML
- documents into a single XML document.
- ================================================================ -->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
- <xsl:template match="ProductFiles">
- <allproducts>
- <xsl:for-each select="document(file/@href)">
- <xsl:copy-of select="*" />
- </xsl:for-each>
- </allproducts>
- </xsl:template>
-
- </xsl:stylesheet>